/*
 * @Author: szx
 * @Date: 2022-02-26 14:32:34
 * @LastEditTime: 2022-02-26 14:33:44
 * @Description:
 * @FilePath: \leetcode\300-399\344\344_2.js
 */

/**
 * @param {character[]} s
 * @return {void} Do not return anything, modify s in-place instead.
 */
var reverseString = function (s) {
    let l = 0,
        r = s.length - 1;
    while (l < r) {
        [s[l], s[r]] = [s[r], s[l]];
        l++;
        r--;
    }
    s.reverse();
};
